﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package com.facebook.commands.photos {
    import com.facebook.*;
    import com.facebook.net.*;
    import com.facebook.data.photos.*;

    public class UploadPhoto extends FacebookCall implements IUploadPhoto {

        public static const SCHEMA:Array = ["data", "aid", "caption", "uid"];
        public static const METHOD_NAME:String = "photos.upload";

        public var aid:String;
        protected var _data:Object;
        public var uid:String;
        public var caption:String;
        public var uploadedPhoto:FacebookPhoto;
        protected var _uploadType:String = "png";
        protected var _uploadQuality:uint = 80;

        public function UploadPhoto(_arg1:Object, _arg2:String=null, _arg3:String=null, _arg4:String=null){
            super(METHOD_NAME);
            this.data = _arg1;
            this.aid = _arg2;
            this.caption = _arg3;
            this.uid = _arg4;
        }
        override facebook_internal function initialize():void{
            applySchema(SCHEMA, this.data, this.aid, this.caption, this.uid);
            super.initialize();
        }
        public function get uploadType():String{
            return (this._uploadType);
        }
        public function set data(_arg1:Object):void{
            this._data = _arg1;
        }
        public function get data():Object{
            return (this._data);
        }
        public function set uploadType(_arg1:String):void{
            this._uploadType = _arg1;
        }
        public function set uploadQuality(_arg1:uint):void{
            this._uploadQuality = _arg1;
        }
        public function get uploadQuality():uint{
            return (this._uploadQuality);
        }

    }
}//package com.facebook.commands.photos 
